package com.my.task;

import java.util.Timer;

/**
 * @author: marshal
 * @date: 2022-10-17 15:19
 */
public class MyTaskTest {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new MyTask("Period Task"), 2000, 1000);
    }
}
